package com.atjinggu.jinggumail.cart.feign;

import com.atjinggu.jinggumail.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author jingming
 * @Type ProductFeignService.java
 * @Desc
 * @date 2021/3/5 17:42
 */
@FeignClient("jinggumail-product")
public interface ProductFeignService {
    @RequestMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);


    @GetMapping("/product/skusaleattrvalue/saleAttrList/{skuId}")
    List<String> getSaleAttrListString(@PathVariable("skuId") String skuId);
}